package com.lk.pojo;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

import com.google.gson.annotations.Expose;

@Entity
@Table(name="t_tel")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Tel {

	@Expose
	private String id;
	@Expose
	private String tel;
	@Expose
	private String type;
	//private String t_contacts_id;
	@Expose
	private String createTime;
	private Contacts contacts;
	
	
	@Id
	@GenericGenerator(name="taskid",strategy="uuid")
	@GeneratedValue(generator="taskid")
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	
	@ManyToOne
	@JoinColumn(name="t_contacts_id")
	public Contacts getContacts() {
		return contacts;
	}
	public void setContacts(Contacts contacts) {
		this.contacts = contacts;
	}
	
}
